package com.example.demo.mapper;

import com.example.demo.pojo.Preservation;
import com.example.demo.pojo.request.PreservationRequest;

import java.util.List;

/**
 * @author 程序员小洋
 * @version 2022.3
 * @date 2023/5/9 10:54
 * @title 项目维护表的mapper层
 */
@SuppressWarnings("all")
public interface PreservationMapper {

    /**
     * 新增
     * @param pdreservation
     * @return
     */
    void save(Preservation pdreservation);

    /**
     * 更新
     * @param pdreservation
     */
    void update(Preservation pdreservation);

    /**
     * 根据id删除
     * @param id
     */
    void deleteById(Integer id);

    /**
     * 根据id查询
     * @param id
     * @return
     */
    Preservation getById(Integer id);

    /**
     * 查询
     * @return
     */
    List<Preservation> list(PreservationRequest pdreservationRequest);
}
